// pages/mine/mine.js
const utils = require('../../utils/util.js')
Page({

  /**
   * 页面的初始数据
   */
  data: {
    startDateDisable: utils.formatDate(new Date),
    endDateDisable: '',
    startDate: '请选择',
    endDate: '请选择',
    sex: '请选择',
    room: '请选择'
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  bindStartDateChange: function (e) {
    this.setData({
      startDate: e.detail.value,
      endDateDisable: e.detail.value
    })
  },
  bindEndDateChange: function (e) {
    this.setData({
      endDate: e.detail.value
    })
  },
  bindSexChange: function (e) {
    this.setData({
      sex: e.detail.value
    })
  },
  getRoom: function (e) {
    this.setData({
      room: e.detail.value
    })
  },
  jump: function (event) {
    if (!event.currentTarget.dataset.jumpUrl) {
      return false;
    }
    wx.navigateTo({
      url: event.currentTarget.dataset.jumpUrl
    })
  }
})